//
//  TestViewController.m
//  jinneng
//
//  Created by mac on 2020/8/3.
//  Copyright © 2020 jznrj. All rights reserved.
//

#import "TestViewController.h"
#import "BrowseBottomView.h"

@interface TestViewController ()<OperateBarDelegate>
@property(nonatomic,strong) BrowseBottomView *bottomView;
@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initView];
}

-(void) initView{
    self.bottomView = [[BrowseBottomView alloc]init];
    self.bottomView.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin;
    self.bottomView.delegate = self;
    [self.view addSubview:self.bottomView];
    [self.bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(self.view);
       if (@available(iOS 11.0, *)) {
            make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
        } else {
            make.bottom.equalTo(self.view);
        }
        make.height.equalTo(@52);
        make.left.equalTo(self.view);
    }];
    [self.view addSubview:self.bottomView];

}

- (void)onButtonAction:(NSInteger)offset{
      if (offset == 0) {
         
      }else if(offset == 1){
        
      }
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
